#include "Camera.h"

Camera::Camera(vector C)
{
    cam_coord=C;
    L=800;
    H=600;
}

Camera::~Camera()
{
    //dtor
}

void Camera::SetH(int t){
    H=t;
}

void Camera::SetL(int t){
    L=t;
}


vector Camera::CalcCoord(vector C){
    int Xc=C.x,Yc=C.y,Xcam=cam_coord.x,Ycam=cam_coord.y;
    vector R (Xcam-Xc+(L/2),Ycam-Yc+(H/2));
    return R;
}
